package o;

import java.io.IOException;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import o.aum.c;

final class auo<T> extends ato<T> {
    private final Type ˊ;
    private final atb ˏ;
    private final ato<T> ॱ;

    auo(atb o_atb, ato<T> o_ato_T, Type type) {
        this.ˏ = o_atb;
        this.ॱ = o_ato_T;
        this.ˊ = type;
    }

    public T ˏ(auy o_auy) throws IOException {
        return this.ॱ.ˏ(o_auy);
    }

    public void ˎ(aux o_aux, T t) throws IOException {
        ato o_ato = this.ॱ;
        Type ˏ = ˏ(this.ˊ, t);
        if (ˏ != this.ˊ) {
            o_ato = this.ˏ.ˏ(auv.ˋ(ˏ));
            if ((o_ato instanceof c) && !(this.ॱ instanceof c)) {
                o_ato = this.ॱ;
            }
        }
        o_ato.ˎ(o_aux, t);
    }

    private Type ˏ(Type type, Object obj) {
        if (obj == null) {
            return type;
        }
        if (type == Object.class || (type instanceof TypeVariable) || (type instanceof Class)) {
            return obj.getClass();
        }
        return type;
    }
}
